Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Victoremepunto
Copy link
Contributor

  • Moves all function definitions on top of the script
  • Sets all variable definitions next
  • Remove all references to bonfire on the variables and directory names
  • Reuse the cicd directory to create the Python virtual env where bonfire gets installed

python3 -m venv .bonfire_venv
source .bonfire_venv/bin/activate
python3 -m venv "${CICD_ROOT}/.bonfire_venv"
source "${CICD_ROOT}/.bonfire_venv/bin/activate"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can merge this in yet, there's a few unit_test.sh's that would be impacted by this, for ex:

https://github.com/RedHatInsights/insights-host-inventory/blob/master/unit_test.sh#L26

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argh - that's why we don't want to hardcode config

nice catch - I'll think of a way to handle this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants